<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>背景、过度、缩放和旋转</title>
    <style>
      .box0 {
        width: 500px;
        height: 500px;
        background-color: indianred;
        background-image: url("../图片/img/a1.jpeg");
        background-position: -10px -10px;   /* center 正中居中，两个参数左右上下移动  */
      }

      .box1{
        width: 200px;
        height: 200px;
        background-color: indianred;
        position: relative;
        transition-duration: 2s;
        transition-property: all;
      }

      .box2{
        width: 100px;
        height: 100px;
        background-color: indigo;
        position: absolute;
        left: 0px;
        /* right: 0px; */
        top:0px;
        bottom: 0px;
        /* margin: auto; */
        transition-duration: 2s;
        transition-property: all;
      }
      .box3{
        width: 100px;
        height: 100px;
        background-color:ivory;
        position: absolute;
        
        transition-duration: 2s;
        transition-property: all;
      }
      .box1:hover>.box2.box3{
          background-color: #fff;
          left: 300px;
      }
      
    </style>
  </head>
  <body>
      背景</br>
    <!-- <div class="box0"></div> -->
      过度</br>
    <div class="box1">
        <div class="box2"></div>
        <div class="box3"></div>
    </div>
  </body>
</html>
